package cn.tingting.service.impl;

import cn.tingting.domain.LoginUser;
import cn.tingting.mapper.LoginUserMapper;
import cn.tingting.service.ILoginUserService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ztt
 * @since 2021-03-05
 */
@Service
public class LoginUserServiceImpl extends ServiceImpl<LoginUserMapper, LoginUser> implements ILoginUserService {
    @Autowired
    private LoginUserMapper loginUserMapper;
    @Override
    public boolean insert(LoginUser entity) {
        loginUserMapper.insert(entity);
        loginUserMapper.insertmeal(entity.getId(),entity.getMealId());
        return true;
    }
}
